package com.kbtxwer.tmss;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;

import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebView;

public class ArticleView extends AppCompatActivity {
Toolbar toolbar;
WebView web;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_article_view);
        Intent intent = getIntent();
        toolbar = findViewById(R.id.view_toolbar);
        toolbar.setTitle(intent.getStringExtra("title"));
        toolbar.setNavigationOnClickListener(v->finish());
        web = findViewById(R.id.web);
        web.loadUrl(intent.getStringExtra("viewAddress"));
    }
}
